package cn.krui.helper.db;

import java.util.List;

/**
 * @author zc
 * @param 泛型
 */
public class DataPage<T> {
  private List<T> data;
  
  private Long totalRows;
  
  private Integer pageNumber;
  
  private Integer pageSize;
  
  public DataPage(List<T> data, Long totalRows, Integer pageNumber, Integer pageSize) {
    this.data = data;
    this.totalRows = totalRows;
    this.pageNumber = pageNumber;
    this.pageSize = pageSize;
  }
  
  public List<T> getData() {
    return this.data;
  }
  
  public void setData(List<T> data) {
    this.data = data;
  }
  
  public Long getTotalRows() {
    return this.totalRows;
  }
  
  public void setTotalRows(Long totalRows) {
    this.totalRows = totalRows;
  }
  
  public Integer getPageNumber() {
    return this.pageNumber;
  }
  
  public void setPageNumber(Integer pageNumber) {
    this.pageNumber = pageNumber;
  }
  
  public Integer getPageSize() {
    return this.pageSize;
  }
  
  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }
}
